import { Table as AntTable, ConfigProvider } from "antd";
import React from "react";
import "./Table.css";

const Table: React.FC<any> = (props) => {
  return (
    <ConfigProvider
      theme={{
        token: {
          colorBgContainer: "#000",
          colorText: "#fff",
        },
        components: {
          Table: {
            headerBorderRadius: 0,
            rowHoverBg: "transparent",
            headerColor: "#fff",
            headerBg: "#000",
            rowExpandedBg: "#000",
          },
        },
      }}
    >
      <AntTable className="um-table" {...props} />
    </ConfigProvider>
  );
};

export default Table;
